package code03_选择结构;

public class Test05_switch {
	public static void main(String[] args) {
		int today = 1;
		switch (today) {
			case 1:
				System.out.println("吃包子");
				// break; // 当省略break时一旦匹配，则一直往下执行，直到遇到break才停止
			case 2:
				System.out.println("吃面包");
				break;
			case 3:
			case 4:
			case 5:
				System.out.println("吃油条");
				break;
			default:
				System.out.println("今天周末，啥也不吃！");
				break;
		}
		
		if(today == 1){
			System.out.println();
		}else if(today == 2){
			System.out.println();
		}else if(today == 3 || today == 4 || today == 5){
			System.out.println();
		}else{
			System.out.println();
		}
	}
}
